import request from '../utils/request';

export const fetchgoodsData = query => {
    return request({
        url: '/WORKSPACE/apis/goods',
        method: 'get',
        params: query,
    });
};

export const fetchBuyGoods = query =>{
     return request({
         url: '/WORKSPACE/apis/orders',
         method: 'post',
         data: query
     });
};

export const fetchorderData = query => {
    return request({
        url: '/WORKSPACE/apis/orders',
        method: 'get',
        params: query,
    });
};